package org.openea.eap.module.obpm.service.custsql;

import com.alibaba.fastjson.JSONObject;
import org.openbpm.base.api.response.impl.ResultMsg;
import org.openea.eap.module.obpm.model.custsql.FormCustSql;
import org.openea.eap.module.obpm.model.custsql.SqlViewRequest;
import org.openea.eap.module.obpm.model.custsql.vo.SqlViewDataVO;
import org.openea.eap.module.obpm.model.custsql.vo.SqlViewVO;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletResponse;

public interface FormCustSqlViewManager {
  ResultMsg<FormCustSql> getVo(@RequestParam String code);
  ResultMsg<JSONObject> getVoJson(@RequestParam String code);

  ResultMsg<SqlViewVO> listDataSql(SqlViewRequest request);

  ResultMsg<SqlViewDataVO> listData(SqlViewRequest request);

  ResultMsg<String> exportData(SqlViewRequest request, HttpServletResponse response);

  ResultMsg<String> changeData(String code, String buttonAlias, String ids);
}
